/*
An abstract class that every type Sensor (Thermometer, Barometer,
etc...) should inherit from:  since all of these are Sensors (is-a)
As a result, this class is set up as abstract:  so that it cannot
be instatiated and just thought of as a super-class
A Class By Lou Rosas
*/

package rosas.lou.weatherclasses;

import java.util.*;
import java.lang.*;
import rosas.lou.weatherclasses.*;

public abstract class Sensor{
   //************************Abstract Methods************************
   public abstract double measure(Units units);
   public abstract double measure();
   public abstract Units  getUnits();

   /*
   This is the name of the Sensor:  DS1920, DS18S20,
   */
   public String getName(){
      return new String("Of Type DS");
   }

   /*
   The 16 digit hex number returned as a string
   */
   public String getID(){
      return new String("0");
   }

   /*
   The current type of sensor:  Thermometer, Barometer,
   Hygrometer, etc...
   */
   public String getType{
      return new String("Sensor");
   }
}
